package com.hzit.page.controller;

import com.hzit.page.service.ItemService;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.IOException;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Controller
public class ItemController {

	@Autowired
	private ItemService itemService;

	@GetMapping("/generateHtml/{id}")
	public void generateHtml(@PathVariable String id) throws IOException {
		itemService.createHtml(id);

	}
}
